package com.fitness.front.convertor;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fitness.front.modal.resource.dto.EquipmentDto;
import com.fitness.front.modal.resource.entity.Equipment;
import com.fitness.front.modal.resource.vo.EquipmentVO;
import org.mapstruct.Mapper;

@Mapper(componentModel = "spring")
public interface EquipmentConvertor {
    Page<EquipmentVO> entity2vo(Page<Equipment> equipmentPage);

    EquipmentVO entity2Vo(Equipment result);

    Equipment dto2Entity(EquipmentDto equipmentDto);
}
